package com.maciek.integracja_aplikacji.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Person implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String pesel;
	private String firstName;
	private String lastName;
	private String address;
	private String zipCode;
	private String place;
	private String country;
	private String placeOfBirth;
	private Boolean isCriminalRecord;
	private Set<PersonalFile> personalFiles = new HashSet<PersonalFile>(0);
	
	public Person() {}
	
	public String getPesel() {
		return pesel;
	}
	
	public void setPesel(String pesel) {
		this.pesel = pesel;
	}
	
	public String getFirstName() {
		return firstName;
	}
	
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	
	public String getLastName() {
		return lastName;
	}
	
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	public String getAddress() {
		return address;
	}
	
	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getZipCode() {
		return zipCode;
	}
	
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	
	public String getPlace() {
		return place;
	}
	
	public void setPlace(String place) {
		this.place = place;
	}
	
	public String getCountry() {
		return country;
	}
	
	public void setCountry(String country) {
		this.country = country;
	}
	
	public String getPlaceOfBirth() {
		return placeOfBirth;
	}
	
	public void setPlaceOfBirth(String placeOfBirth) {
		this.placeOfBirth = placeOfBirth;
	}
	
	public Boolean getIsCriminalRecord() {
		return isCriminalRecord;
	}
	
	public void setIsCriminalRecord(Boolean isCriminalRecord) {
		this.isCriminalRecord = isCriminalRecord;
	}
	
	public Set<PersonalFile> getPersonalFiles() {
		return personalFiles;
	}
	
	public void setPersonalFiles(Set<PersonalFile> personalFiles) {
		this.personalFiles = personalFiles;
	}
	
	@Override
	public String toString() {
		return "Person [ ID=" + pesel + ", Name=" + firstName
				+ ", Surname=" + lastName + " ]";
	}
}
